#include <stdio.h>
#include <sqlite3.h>
#include <stdlib.h>

int main(){
	sqlite3 *db = NULL;
	char *relt;
	int rc;

	rc = sqlite3_open("/home/orangepi/sqlite/test.db",&db);
	if(rc){
		fprintf(stderr,"Can not open datebase: %s\n",sqlite3_errmsg(db));
		exit(-1);
	}else{
		fprintf(stdout,"Opened successfully\n");
	}
	sqlite3_close(db);

	return 0;
}
